<ui:composition
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets">

    <script>
        var gebruikerid = null;
        gebruikerid = " " + '<h:outputText value="${sessionScope.gebruiker.getId()}"/>';
        if (gebruikerid === " ")
        {
            //alert("bye bye");
            window.location = "aanmelden.xhtml";
        }
    </script>

    
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Navigatie</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">ScoreTracker</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="upload.xhtml">Upload Scores</a></li>
                    <li><a href="resultaten.xhtml">Resultaten</a></li>
                    <li><a href="#">Loguit</a></li>
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </nav>
</ui:composition>
